﻿@{
    ViewBag.Title = "修改密码";
}
@model DTcms.Model.manager
<form id="form1" class="layui-form" url="ManagerPwdSave">
    @Html.AntiForgeryToken()
    <!--导航栏-->
    <div class="pageheader">
        <div class="page-bar">
            <ul class="page-breadcrumb">
                <li><a href="javascript:;"><i class="iconfont icon-home1"></i> 首页</a> </li>
                <li><a href="javascript:;">修改密码</a> </li>
            </ul>
        </div>
    </div>
    <!--/导航栏-->
    <!--内容-->
    <div class="layui-fluid">
        <div class="layui-tab layui-tab-card">
            <ul class="layui-tab-title" id="floatHead">
                <li class="layui-this">修改密码</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <div class="layui-form-item">
                        <label class="layui-form-label">用户名</label>
                        <div class="layui-input-block">
                            @Html.TextBox("user_name", Model.user_name, new { @class = "input normal", disabled = "disabled" })
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">旧登录密码</label>
                        <div class="layui-input-block">
                            @Html.Password("txtOldPassword", "", new { @class = "input normal", datatype = "*6-20", nullmsg = "请输入旧密码", errormsg = "密码范围在6-20位之间", sucmsg = " " })
                            <span class="Validform_checktip">*</span>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">新登录密码</label>
                        <div class="layui-input-block">
                            @Html.Password("password", "", new { @class = "input normal", datatype = "*6-20",  nullmsg = "请再输入一次新密码", errormsg = "两次输入的密码不一致", sucmsg = " " })
                            <span class="Validform_checktip">*</span>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">新确认密码</label>
                        <div class="layui-input-block">
                            @Html.Password("txtPassword1", "", new { @class = "input normal", datatype = "*",recheck = "password", nullmsg = "请输入旧密码", errormsg = "密码范围在6-20位之间", sucmsg = " " })
                            <span class="Validform_checktip">*</span>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">姓名</label>
                        <div class="layui-input-block">
                            @Html.TextBox("real_name", Model.real_name, new { @class = "input normal" })
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">电话</label>
                        <div class="layui-input-block">
                            @Html.TextBox("telephone", Model.telephone, new { @class = "input normal" })
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">邮箱</label>
                        <div class="layui-input-block">
                            @Html.TextBox("email", Model.email, new { @class = "input normal" })
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--/内容-->
    <!--工具栏-->
    <div class="page-footer">
        <div class="btn-wrap">
            <button class="layui-btn icon-btn" id="btnSubmit"><i class="layui-icon layui-icon-ok"></i>提交保存</button>
            <button class="layui-btn layui-btn-warm icon-btn" name="btnReturn" onclick="javascript:history.back(-1);"><i class="layui-icon layui-icon-return"></i>返回上一页</button>
        </div>
    </div>
    <!--/工具栏-->
</form>
@section Scripts{
    <script type="text/javascript">
        layui.use(['validform', 'element', 'jqueryform'], function () {
            //初始化表单验证
            $("#form1").initValidform('#btnSubmit', 1);
        });
    </script>
}